<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="com.sakila.dao.ActorDAO"  
    import="java.util.List"
    import="com.sakila.dbo.ActorDBO" import="java.util.Iterator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
 
 <%
  	List<ActorDBO> list = new ActorDAO().findAll();
  %>
  <%-- <ol>
   <% 
      Iterator<ActorDbo> it = list.iterator();
      while (it.hasNext())
      {
         ActorDbo dboItem = (ActorDbo) it.next();
   %>
      <li>
        Actor Id : <%=dboItem.getActorID()%> First Name :  <%=dboItem.getFirstName()%> Last Name : <%=dboItem.getLastName()%>       
      </li>
   <% } %>
</ol> --%>
<table border="1">
   <tr bgcolor="yellow">
     <th>Actor ID</th>
     <th>First Name</th>
     <th>Last Name</th>
     <th>Last Update</th>
   </tr>
   <%
   	for(ActorDBO aco: list){
   %>
   <tr bgcolor="lightblue">
     <td><%= aco.getActorID()%></td>
     <td><%=aco.getFirstName()%></td>
     <td><%=aco.getLastName()%></td>
    <td><%=aco.getLastUpdate()%></td> 
   </tr>
   <%} %>
 </table>
</body>
</html>